﻿using Factory;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class B_Size : ISize
    {
        public void Add(Size item)
        {
           CreateFactory.GetSize().Add(item);
        }

        public void Delete(int id)
        {
            CreateFactory.GetSize().Delete(id);
        }

        public Size FindById(int id)
        {
            return CreateFactory.GetSize().FindById(id);
        }

        public List<Size> GetAll()
        {
            return CreateFactory.GetSize().GetAll();
        }

        public void Updata(int id, Size item)
        {
            CreateFactory.GetSize().Updata(id, item);
        }
    }
}
